<html>
  <head>
    <title>IndexedDB crbug899446</title>
    <script type="text/javascript" src="common.js"></script>
    <script type="text/javascript" src="crbug899446.js"></script>
    <script>
      async function test() {
        const db = await Database.open('crbug899446');
        if (!db) {
          fail("db failed to open");
          return;
        }

        try {
          if (!await db.read()) {
            fail("db.read() failed");
            return;
          }
        } catch (e) {
          fail(e);
          return;
        }

        done();
      }
    </script>
  </head>
  <body onLoad="test()">
    <div id="status">Starting...</div>
  </body>
</html>
